package com.dayuanit.dy16.ebook.ebookweb;

import com.dayuanit.dy16.ebook.ebookweb.listener.BannerListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.dayuanit.dy16.ebook.ebookweb.mapper")
@EnableScheduling
@EnableAsync
@ImportResource(locations = "classpath:spring-xx.xml")
public class EbookWebApplication {

    public static void main(String[] args) {
        SpringApplication context= new SpringApplication(EbookWebApplication.class);
        context.addListeners(new BannerListener());
//        context.setBannerMode(Banner.Mode.OFF);
        context.run(args);
    }

}
